package net.cnki.sunny.model.mapper;

import net.cnki.sunny.model.entity.Role;
import net.cnki.sunny.model.vo.RoleVO;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    List<RoleVO> selectRoleUserList();

    Integer deleteUserRole(Integer roleId);

    Integer batchAddUserRole(List<Integer> users,Integer roleId);

    List<Integer> selectAssignedUser(Integer roleId);
}
